
#ifndef NUMBER_OBJECT_H
#define NUMBER_OBJECT_H

#include "ValueType.h"

#include <object_v2/object_v2.h>

OBJECT_DECLARE (NumberObject, number_object)
#define NUMBER_OBJECT(any) ((NumberObject*)(any))
struct _NumberObject
{
        Object    parent_instance;
        int       number;
        ValueType number_type; // NUMBER 或 RABGE
};

void number_object_set_number (NumberObject* obj, int number);
void number_object_set_type (NumberObject* obj, bool is_type_range);

#endif